package com.nightsoul.nutz.test.ioc;

import org.nutz.ioc.Ioc;
import org.nutz.ioc.impl.NutIoc;
import org.nutz.ioc.loader.json.JsonLoader;

import com.nightsoul.nutz.test.pojo.Pet;

public class HelloPet {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Ioc ioc = new NutIoc(new JsonLoader("com/nightsoul/nutz/test/pojo/pets.js"));
		Pet xiaobai = ioc.get(Pet.class, "xiaobai");
		System.out.println(xiaobai);

		Pet xiaohei = ioc.get(Pet.class, "xiaohei");
		System.out.println(xiaohei);
	}

}
